import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

// Antd样式文件需要单独引入
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'

import "./assets/iconfont/iconfont.css"
import './global.less'
import commonJs from './commonJS'
// import { useStore } from 'vuex';
import './router/permission' // 路由拦截
// import Vue3CountryIntl from 'vue3-country-intl'
// import 'vue3-country-intl/dist/vue3-country-intl.css'
// 全局语言包
import i18n from './locales'

// 全局mixin混入
import mixins from './mixin/mixins'

const app = createApp(App)
app.use(createPinia())
app.use(router)

app.use(Antd)
app.use(commonJs)
app.use(i18n)
app.mixin(mixins)
// app.use(Vue3CountryIntl) 
// app.provide('$t', i18n.global.t);

app.mount('#app')
